<?php
/**
 * @author Thibaut Cromphaut, Gaïtano Boeraeve, Mathias Helin, Dimitry Dierickx
 * @copyright  Copyright (c) 2011 Artevelde University College Ghent 
 */

class Application_Form_Userdetails extends ZendX_JQuery_Form
{
    public function init()
    { 
        $this->addElement('autocomplete', 'user_search', array(
            'label'      =>'Search',
            'required'   => true,
            'filters'    => array('StringTrim'),
        ));
        
        $this->addElement('submit', 'search', array(
            'label'      => 'search',
        ));
        
        $this->setDecorators(array(
            'FormElements',
            array('Description', array('placement' => 'prepend')),
            'Form',
        ));
        
        $this->addElement('hash', 'no_csrf_details', array(
            'salt' => 'unique',
        ));
    }
}